package com.hxzy.controller.admin.orders.req;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * @Author wy
 * @Description 更改联系人信息
 * @Date 2023/7/27 17:24
 * @Version 1.0
 */
@Getter
@Setter
@ToString
public class UpdateConsigneeReq {

    /**
     * 订单编号number
     */
    @NotNull(message = "订单编号不能为空")
    private Long id;

    /**
     * 收货人
     */
    @NotBlank(message = "收货人不能为空")
    private String name;

    @Pattern(regexp = "^0?(13|15|17|18|14|19)[0-9]{9}$",message = "手机号码格式不正确，只支持13|15|17|18|14|19")
    @NotBlank(message = "收货人电话不能为空")
    private String phone;

    @NotBlank(message = "收货人地址不能为空")
    private String address;
}
